import 'package:flutter/foundation.dart';

abstract class HasLayoutGroup {
  VoidCallback get onLayoutToggle;
}

enum LayoutType {
  card,
  shop,
  community,
  website,
}

String layoutName(LayoutType layoutType) {
  switch (layoutType) {
    case LayoutType.card:
      return '社区';
    case LayoutType.shop:
      return '商城';
    case LayoutType.community:
      return '交流';
    case LayoutType.website:
      return '官网';
    default:
      return '';
  }
}